package com.example.administrator.caigou51.request;


/**
 * 接口回调，定义成功和失败两种情况
 *
 * @author xyg
 * @param <T>
 *            回调的java bean
 */
public interface ICallBackForRequestServer <T extends IBaseResponse> {

    public void onSuccess(T result);
    public void onFail(int type, String errorMsg, String json);
}
